/*
 * 
 * 
 * 
 */
package com.cms.constant;

/**
 * 公共参数
 * 
 * 
 * 
 */
public final class CommonConstant {
	
	/** UTF-8编码 */
	public static final String UTF_8 = "UTF-8";
	
	/** POST */
	public static final String POST="post";
	
	/** GET */
	public static final String GET="get";
	
	/** 后台页面 */
	public static final String ADMIN_PATH="/admin/view/";
	
	/** 后台错误页面 */
	public static final String ADMIN_ERROR_VIEW = ADMIN_PATH+"error/500.html";
	
	/** 后台权限错误页面 */
	public static final String ADMIN_UNAUTHORIZED_VIEW = ADMIN_PATH+"error/403.html";
	
	/** 前台错误页面 */
	public static final String FRONT_ERROR_VIEW = "/500.html";
	
	/** 前台权限错误页面 */
	public static final String FRONT_RESOURCE_NOT_FOUND_VIEW = "/404.html";
	
	/** config.xml文件路径 */
	public static final String CONFIG_XML_PATH = "/config.xml";
	
	/** config.properties */
	public static final String CONFIG_PROPERTIES = "config.properties";
	
	/** job.properties */
	public static final String JOB_PROPERTIES = "job.properties";
	
	/** 页面后缀 */
	public static final String VIEW_EXTENSION = ".html";
	
	/** 参数分隔符 */
	public static final String URL_PARA_SEPARATOR = "-";
	
	/** 上传文件目录 */
	public static final String UPLOAD_PATH = "static/upload";
	
	/** 备份文件目录 */
	public static final String BACK_PATH = "static/back";
	
	/** JSON时间格式 */
	public static final String JSON_DATE_PATTERN = "yyyy-MM-dd HH:mm:ss";

	/** 模板路径 */
	public static final String TPATH = "tpath";

	/** 验证码 */
	public static final String KAPTCHA = "kaptcha";

	/** 前台站点 */
	public static final String CURRENT_SITE="currentSite";

	/** 后台站点 */
	public static final String ADMIN_SESSION_SITE="admin_session_site";

	/** 管理员session名称 */
	public static final String SESSION_ADMIN="session_admin";

	/** 前台公司信息 */
	public static final String CURRENT_COMPANY="currentCompany";

	/** 前台网站信息 */
	public static final String CURRENT_WEB="currentWeb";

	/** 前台网站导航 */
	public static final String CURRENT_NAV="currentNav";
	
	/**
	 * 不可实例化
	 */
	private CommonConstant() {
	}
}